package com.hzx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzx.Activity;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface ActivityMapper extends BaseMapper<Activity> {

    @Select("update activity set num=num-1 where a_id = #{aId}")
    Activity deleteActivity(int aId);

}
